package com.gzu.finalwork.admin.service;

import com.gzu.finalwork.admin.mapper.NotificationSettingsMapper;
import com.gzu.finalwork.entity.admin.NotificationSettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 通知设置服务类
 */
@Service
public class NotificationSettingsService {

    @Autowired
    private NotificationSettingsMapper notificationSettingsMapper;

    /**
     * 获取通知设置
     */
    public NotificationSettings getNotificationSettings() {
        return notificationSettingsMapper.selectNotificationSettings();
    }

    /**
     * 更新通知设置
     */
    public void updateNotificationSettings(NotificationSettings notificationSettings) {
        notificationSettingsMapper.updateNotificationSettings(notificationSettings);
    }
} 